package com.bestcem.xm.award.enums;

import com.google.common.collect.Maps;
import lombok.Getter;

import java.util.Map;

/**
 * enum helper
 *
 * @author xa.zhang <xa.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/6/24 19:18
 */
@Getter
public class AwardEnumHelper {

    public static Map<Integer, String> DeliverSourceEnumMap = Maps.newHashMap();
    public static Map<Integer, String> PointRecordStatusEnumMap = Maps.newHashMap();
    public static Map<Integer, String> RedPacketStatusEnumMap = Maps.newHashMap();

    static {
        for (DeliverSourceEnum temp : DeliverSourceEnum.values()) {
            DeliverSourceEnumMap.put(temp.getIndex(), temp.getName());
        }

        for (PointRecordStatusEnum temp : PointRecordStatusEnum.values()) {
            PointRecordStatusEnumMap.put(temp.getIndex(), temp.getName());
        }

        for (RedPacketStatusEnum temp : RedPacketStatusEnum.values()) {
            RedPacketStatusEnumMap.put(temp.getIndex(), temp.getName());
        }
    }


}
